﻿<Window x:Class="MoneyManagerNET.Presentation.View.AccountListView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AccountWindow" Height="300" Width="300"
        
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
        
       xmlns:vm="clr-namespace:MoneyManagerNET.Presentation.ViewModel;assembly=MoneyManagerNET.Presentation.ViewModel" 
       d:DataContext="{x:Static Member=vm:DesignTimeViewModelSupplier.AccountList}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="186*" />
            <RowDefinition Height="42*" />
        </Grid.RowDefinitions>
        <TextBlock Text="Choose Bank Account"/>
        <StackPanel Orientation="Horizontal" Grid.Row="2">
        <Button Content="Ok" Grid.Row="2" Height="23"   Name="btnOk" Click="btnOk_Click" />
        <Button Content="Cancel" Grid.Row="2" Height="23"  Name="btnCancel" Click="btnCancel_Click" IsCancel="True" />
        </StackPanel>
        <ListBox Grid.Row="1" Name="lstAccounts" ItemsSource="{Binding Items}" DisplayMemberPath="Name" SelectedValue="{Binding Selected}"/>
    </Grid>
</Window>
